<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户注册</title>
<link rel="stylesheet" type="text/css" href="css/register.css"/>
<script src="js/register.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
	<div id="all">
		<h1>欢迎注册联系人管理系统，页面后台还未完善</h1>
		<form action="AdminServlet?action=register" method="post" onsubmit="return checkall()" enctype="multipart/form-data">
			<table border="1" cellspacing="0" cellpadding="0">
				<tr>
					<td>头像：</td>
					<td> <img src="img/headimg.jpg" id="showimg"/><input type="file" name="headimg" id="headimg" value="" onchange="changeimg(this)" /></td>
					<td></td>
				</tr>
				<tr>
					<td>用户名：</td>
					<td><input type="text" name="account" id="account" value="" onblur="checkaccount2()"/></td>
					<td><font size="" color="red" id="accounthint"></font></td>
				</tr>
				
				<tr>
					<td>密码：</td>
					<td><input type="password" id="password" name="password" onblur="checkpwd()" value=""/></td>
					<td><font size="" color="red" id="pwdhint"></font></td>
				</tr>
				<tr>
					<td>确认密码：</td>
					<td><input type="password" id="password2" name="password2" onblur="checkpwd2()" value=""/></td>
					<td><font size="" color="red" id="pwdhint2"></font></td>
				</tr>
				 <tr>
    			<td>管理员姓名：</td>
    			<td><input type="text" name="name" id="name" value="" onblur="checkname()"/></td>
				<td> <font id="namehint" color="red"></font> </td>
    		</tr>
				<tr>
					<td>手机号：</td>
					<td><input type="text" id="phone" name="phone" value="" placeholder="请输入手机号" onblur="checkphone()"/></td>
					<td><input type="button" name="phonecode" id="phonecode" value="点击获取" onclick="phonegetcode()" /><font color="red" id="phonehint"></font></td>
				</tr>
				<tr>
					<td>短信验证码：</td>
					<td><input type="text" id="phoneincode1" name="phone" value="" placeholder="请输入短信验证码" onblur="checkphonecode()"/></td>
					<td><font size="" color="red" id="phoneinhint"></font></td>
				</tr>
				<tr>
					<td>验证码：</td>
					<td><input type="text" name="code1" id="code1" value="" placeholder="点击图片更换验证码" onblur="checkcode()" /></td>
					<td><img src="CheckCodeServlet" alt="验证码加载失败" onclick="changecode()" id="code2" ><font color="red" id="codehint"></font></td>
				</tr>
				<tr>
					<td><input type="submit" value="注册"/></td>
					<td><input type="reset" value="重置" /></td>
					<td><a href="login.jsp">已有账号，登陆</a></td>
				</tr>
			</table>
			
		</form>
		
	</div>
</body>
</html>